package com.mathlearning.auth.dto.learning;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class VideoDetailResponse {
    private Long id;
    private Long chapterId;
    private String chapterTitle;
    private Long courseId;
    private String courseTitle;
    private String title;
    private String description;
    private String videoUrl;
    private Integer duration;
    private String thumbnail;
    private Integer viewCount;
    private InstructorInfo instructor;
    private VideoProgressInfo progress;
    private NextVideoInfo nextVideo;
    private NextVideoInfo prevVideo;
    
    // 权限相关字段
    private String accessType;       // 新增：权限类型
    private Integer previewDuration;  // 新增：试看时长
    private Boolean hasPurchased;     // 新增：是否购买了课程
    private Boolean isVip;            // 新增：是否是会员
}



